//图形块名称翻译
Blockly.JOYROBOT_SETUP = "小车初始化";
Blockly.JOYROBOT_SPEED = "速度";
Blockly.JOYROBOT_MOVE = "小车";
Blockly.JOYROBOT_MODE = "操控模式";
Blockly.JOYROBOT_SERVO = "设置舵机";
Blockly.JOYROBOT_SERVOPIN = "舵机引脚";
Blockly.JOYROBOT_SERVODEGREE = "校正角度";
Blockly.JOYROBOT_SERVOANGLE = "舵机角度";
Blockly.JOYROBOT_MOTORPIN = "设置电机引脚";
Blockly.JOYROBOT_LEFTNEGATIVEPIN = "左负极";
Blockly.JOYROBOT_LEFTPOSITIVEPIN = "左正极";
Blockly.JOYROBOT_RIGHTNEGATIVEPIN = "右负极";
Blockly.JOYROBOT_RIGHTPOSITIVEPIN = "右正极";
Blockly.JOYROBOT_TURN = "转弯";

Blockly.HB_SetSpeedOrDegree="设置";

Blockly.JOYROBOT_TURNANGLE = "角度";
Blockly.JOYROBOT_SPEEDUP = "加速";
Blockly.JOYROBOT_SPEEDDOWN = "减速";
Blockly.JOYROBOT_GETCURRENTSPEED = "获取当前速度";
Blockly.JOYROBOT_IRRECEIVEPIN = "红外接收模块初始化";
Blockly.JOYROBOT_IRKEYPRESSED = "红外遥控器按键被按下"
Blockly.JOYROBOT_IRKEYPRESS = "红外遥控器按键按下";
Blockly.JOYROBOT_ULTRASONICPIN = "设置RGB超声波模块引脚";
Blockly.JOYROBOT_SING = "超声波引脚";
Blockly.JOYROBOT_RGB = "RGB引脚";
Blockly.JOYROBOT_SETRGB = "RGB灯";
Blockly.JOYROBOT_RGBCOLOUR = "颜色";
Blockly.JOYROBOT_READULTRASONICDISTANCE = "读取超声波距离";
Blockly.JOYROBOT_IRAVOIDANCEPIN = "设置红外避障模块引脚";
Blockly.JOYROBOT_PHOTOSENSITIVEPIN = "设置追光模块引脚";
Blockly.JOYROBOT_GETPHOTOSENSITIVE = "光弱度值";
Blockly.JOYROBOT_LEFTPIN = "左引脚";
Blockly.JOYROBOT_RIGHTPIN = "右引脚";
Blockly.JOYROBOT_READIRAVOIDANCEDISTANCE = "读取红外避障距离";
Blockly.JOYROBOT_PS2PIN = "设置PS2模块引脚";
Blockly.JOYROBOT_CLKPIN = "时钟引脚";
Blockly.JOYROBOT_CMDPIN = "接收引脚";
Blockly.JOYROBOT_ATTPIN = "触发引脚";
Blockly.JOYROBOT_DATPIN = "数据引脚";
Blockly.JOYROBOT_VARPS2VIBRATE = "定义PS2摇杆震动值";
Blockly.JOYROBOT_SETPS2VIBRATE = "设置PS2摇杆震动值";
Blockly.JOYROBOT_PS2KEYPRESSED = "PS2键被按下";
Blockly.JOYROBOT_WHICHPS2KEYPRESSED = "PS2按下";
Blockly.JOYROBOT_IRTRACKINGPIN = "设置红外循迹模块引脚";
Blockly.JOYROBOT_IRTRACKINGLEFTPIN = "左";
Blockly.JOYROBOT_IRTRACKINGMIDPIN = "中";
Blockly.JOYROBOT_IRTRACKINGRIGHTPIN = "右";
Blockly.JOYROBOT_READTRACKINGVALUE = "读取红外循迹状态";
Blockly.JOYROBOT_SETBYTEOLD = "定义一个保存上一次循迹状态的变量";
Blockly.JOYROBOT_RECENTTRACKINGVALUE = "当前循迹状态";
Blockly.JOYROBOT_CLEANLASTTRACKINGVALUE = "清除上一次循迹状态";
Blockly.JOYROBOT_RECENTTRACKINGVALUEISNOTWHITE = "当前循迹状态不是全白";
Blockly.JOYROBOT_RESETLASTTRACKINGVALUE = "重置上一次循迹状态";
Blockly.JOYROBOT_RECEIVEBLUETOOTHDATA = "接收蓝牙数据";
Blockly.JOYROBOT_RECEIVEDBLUETOOTHDATA = "接收到了蓝牙数据";
Blockly.JOYROBOT_BLUETOOTHKEYPRESSED = "蓝牙操控键按下";


Blockly.HB_InitNrf="初始化nRF24L01+";
Blockly.Raddress = "设置接收地址";
Blockly.HB_ReceivedNrf24L01Data="nRF24L01+是否接收数据";
Blockly.HB_ReadNrf24L01Data="读取nRF24L01+无线手柄数据";
Blockly.HB_ParsingData="解析无线数据";
Blockly.HB_ReadDataTyps="判断无线数据类型";
Blockly.HB_ReadDegreeData="读取角度";
Blockly.HB_ReadSpeedData="读取速度";
Blockly.HB_JudgeButton="判断按键";
//参数翻译
Blockly.JOYROBOT_DIRECTION_FORWARD = "前进";
Blockly.JOYROBOT_DIRECTION_BACK = "后退";
Blockly.JOYROBOT_DIRECTION_STOP = "停止";
Blockly.JOYROBOT_DIRECTION_TURNLEFT = "左转";
Blockly.JOYROBOT_DIRECTION_TURNRIGHT = "右转";
Blockly.JOYROBOT_CONTROLMODE_BLUETOOTH = "蓝牙操控";
Blockly.JOYROBOT_CONTROLMODE_REMOTE = "红外遥控";
Blockly.JOYROBOT_CONTROLMODE_IRTRACKING = "红外循迹";
Blockly.JOYROBOT_CONTROLMODE_IRAVOIDANCE = "红外避障";
Blockly.JOYROBOT_CONTROLMODE_LIGHTFIND = "追光模式";
Blockly.JOYROBOT_CONTROLMODE_ULTRASONICAVOIDANCE = "超声波避障";
Blockly.JOYROBOT_CONTROLMODE_PS2 = "PS2操控";
Blockly.JOYROBOT_CONTROLMODE_NRF24L01 = "NRF24L01操控";
Blockly.JOYROBOT_CONTROLMODE_ULTRASONICIRAVOIDANCE = "超声波红外避障";
Blockly.JOYROBOT_CONTROLMODE_RGB = "RGB模式";
Blockly.JOYROBOT_ULTRASONICDIRECTION_FRONT = "前距离";
Blockly.JOYROBOT_ULTRASONICDIRECTION_LEFT = "左距离";
Blockly.JOYROBOT_ULTRASONICDIRECTION_RIGHT = "右距离";
Blockly.JOYROBOT_IRAVOIDANCEDIRECTION_LEFT = "左";
Blockly.JOYROBOT_IRAVOIDANCEDIRECTION_RIGHT = "右";
Blockly.JOYROBOT_PS2KEY_UP = "上";
Blockly.JOYROBOT_PS2KEY_DOWN = "下";
Blockly.JOYROBOT_PS2KEY_LEFT = "左";
Blockly.JOYROBOT_PS2KEY_RIGHT = "右";
Blockly.JOYROBOT_TRACKINGVALUE_BLACK = "全黑";
Blockly.JOYROBOT_TRACKINGVALUE_WHITE = "全白";
Blockly.JOYROBOT_TRACKINGVALUE_CENTER = "中心";
Blockly.JOYROBOT_TRACKINGVALUE_RIGHT1 = "右1";
Blockly.JOYROBOT_TRACKINGVALUE_RIGHT2 = "右2";
Blockly.JOYROBOT_TRACKINGVALUE_LEFT1 = "左1";
Blockly.JOYROBOT_TRACKINGVALUE_LEFT2 = "左2";
Blockly.JOYROBOT_BLUETOOTHKEY_UP = "上";
Blockly.JOYROBOT_BLUETOOTHKEY_DOWN = "下";
Blockly.JOYROBOT_BLUETOOTHKEY_LEFT = "左";
Blockly.JOYROBOT_BLUETOOTHKEY_RIGHT = "右";
Blockly.JOYROBOT_BLUETOOTHKEY_SPEEDUP = "加速";
Blockly.JOYROBOT_BLUETOOTHKEY_SPEEDDOWN = "减速";

Blockly.JOYROBOT_IRKEY_UP = "上";
Blockly.JOYROBOT_IRKEY_DOWN = "下";
Blockly.JOYROBOT_IRKEY_LEFT = "左";
Blockly.JOYROBOT_IRKEY_RIGHT = "右";

Blockly.JOYROBOT_PHOTOSENSITIVE_LEFT = "左";
Blockly.JOYROBOT_PHOTOSENSITIVE_RIGHT = "右";

Blockly.JOYROBOT_RGBNUMBER_ALL = "全部";
Blockly.JOYROBOT_RGBNUMBER_LEFT = "左边";
Blockly.JOYROBOT_RGBNUMBER_RIGHT = "右边";
Blockly.JOYROBOT_RGBCOLOR_RED = "红色";
Blockly.JOYROBOT_RGBCOLOR_GREEN = "绿色";
Blockly.JOYROBOT_RGBCOLOR_BLUE = "蓝色";
Blockly.JOYROBOT_RGBCOLOR_YELLOW = "黄色";
Blockly.JOYROBOT_RGBCOLOR_PURPLE = "紫色";
Blockly.JOYROBOT_RGBCOLOR_ORANGE = "橙色";
Blockly.JOYROBOT_RGBCOLOR_INDIGO = "靛蓝";
Blockly.JOYROBOT_RGBCOLOR_VIOLET = "紫罗兰";
Blockly.JOYROBOT_RGBCOLOR_WHITE = "白色";
Blockly.JOYROBOT_RGBCOLOR_OFF = "熄灭";
Blockly.JOYROBOT_SETRGBSTYLE = "样式";
Blockly.JOYROBOT_RGBSTYLE_NONE = "无";
Blockly.JOYROBOT_RGBSTYLE_BREATHE = "呼吸";
Blockly.JOYROBOT_RGBSTYLE_ROTATE = "旋转";
Blockly.JOYROBOT_RGBSTYLE_FLASH = "闪烁";

Blockly.JOYROBOT_FIRE="火焰传感器初始化";
Blockly.JOYROBOT_FIRELEFT="左引脚";
Blockly.JOYROBOT_FIRERIGHT="右引脚";
Blockly.JOYROBOT_SOUND="声音传感器初始化引脚";
Blockly.JOYROBOT_FUN="风扇初始化引脚";
Blockly.JOYROBOT_FIREFUNLEFT="左";
Blockly.JOYROBOT_FIREFUNRIGHT="右";
Blockly.JOYROBOT_HAVEFIRE="有火源";
Blockly.JOYROBOT_HAVENOFIRE="无火源";
Blockly.JOYROBOT_OPENFUN="风扇";
Blockly.JOYROBOT_OPENFUNS="开";
Blockly.JOYROBOT_CLOSEFUNS="关";

